package com.hiinfo.mvpdemo.base.component;

/**
 * @author lifei
 * @date 2019/6/15.
 * Email：allen.lee723@qq.com
 * Description：
 */
public abstract class BaseMvpFragment<T extends BasePresenter> extends BaseFragment implements BaseView {

    protected T mPresenter;

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        if (mPresenter != null) {
            mPresenter.detachView();
        }
        super.onDestroyView();
    }
}
